<%--
  Created by IntelliJ IDEA.
  User: 86133
  Date: 2021/5/10
  Time: 16:50
  To change this template use File | Settings | File Templates.
--%>
<%--isELIgnored="false" 不忽略el表达式--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>首页</title>
</head>
<body>
    <div>
        <table border="1" width="800" align="center">
            <tr>
                <th colspan="6"><h2>航班信息</h2></th>
            </tr>
            <tr>
                <td>航班ID</td>
                <td>航班编号</td>
                <td>起飞城市</td>
                <td>起飞时间</td>
                <td>到达时间</td>
                <td>操作</td>
            </tr>
            <c:forEach var="flight" items="${flightList}">
                <tr>
                    <td>${flight.id}</td>
                    <td>${flight.flightNo}</td>
                    <td>${flight.departureCityName}</td>
                    <td>${flight.departureTime}</td>
                    <td>${flight.arrivalTime}</td>
                    <td><a href="#">修改</a><a href="#">删除</a></td>
                </tr>
            </c:forEach>
        </table>
    </div>
</body>
</html>
